# Build the GDCM examples

# Add the include paths
INCLUDE_DIRECTORIES(
  "${GDCM_BINARY_DIR}/Source/Common"
  "${GDCM_SOURCE_DIR}/Source/Common"
  "${GDCM_SOURCE_DIR}/Source/DataStructureAndEncodingDefinition"
  "${GDCM_SOURCE_DIR}/Source/MediaStorageAndFileFormat"
# FIXME:
  "${GDCM_SOURCE_DIR}/Source/DataDictionary"
  "${GDCM_SOURCE_DIR}/Utilities"
  )

ADD_EXECUTABLE(csa2img csa2img.cxx)
TARGET_LINK_LIBRARIES(csa2img gdcmMSFF)

ADD_EXECUTABLE(rle2img rle2img.cxx)
TARGET_LINK_LIBRARIES(rle2img gdcmMSFF)

ADD_EXECUTABLE(uid_unique uid_unique.cxx)
TARGET_LINK_LIBRARIES(uid_unique gdcmMSFF)

ADD_EXECUTABLE(checkdeflate checkdeflate.c puff.c)

ADD_EXECUTABLE(HelloWorld HelloWorld.cxx)
TARGET_LINK_LIBRARIES(HelloWorld gdcmMSFF)

ADD_EXECUTABLE(CompressImage CompressImage.cxx)
TARGET_LINK_LIBRARIES(CompressImage gdcmMSFF)

ADD_EXECUTABLE(CheckBigEndianBug CheckBigEndianBug.cxx)
TARGET_LINK_LIBRARIES(CheckBigEndianBug gdcmMSFF)

